from django.conf.urls import url
from . import views

urlpatterns = [
    # 1 注册
    url('^register/$', views.RegisterView.as_view(), name='register'),
    # 2 登陆
    url('^login/$', views.LoginView.as_view(), name='login'),
    # 3 忘记密码
    url('^forget$', views.ForgetPwdView.as_view(), name='forget_pwd'),
    # 4 重置密码
    url(r'^reset/(?P<active_code>.*)/$', views.ResetView.as_view(), name='reset_pwd'),
    # 5 重置密码
    url(r'^reset/$', views.ModifyPwd.as_view(), name='modify_pwd'),
    # 6 登出 logout
    url('^logout/$', views.LogoutView.as_view(), name='logout'),

]
